﻿package ${service.packageName};

import cn.demoncat.util.mybatis.plus.base.BaseService;
import cn.demoncat.util.lang.entity.Result;
import ${entity.fullName};

/** 
 * ${entity.comment}接口
 *
 * @author ${entity.author}
 *
 * @since ${entity.time}
 */
public interface ${entity.name}Service extends BaseService<${entity.name}>{

    /**
     * 添加
     *
     * @param data
     * @return
     *
     * @author ${entity.author}
     * @since ${entity.time}
     */
    Result add(${entity.name} data);

    /**
     * 修改
     *
     * @param data
     * @return
     *
     * @author ${entity.author}
     * @since ${entity.time}
     */
    Result upd(${entity.name} data);

    /**
     * 删除
     *
     * @param id
     * @return
     *
     * @author ${entity.author}
     * @since ${entity.time}
     */
    Result del(${entity.idAttr.type} id);

    <#if entity.hasSort>
    /**
     * 排序
     *
     * @param id
     * @param sort
     * @return
     *
     * @author ${entity.author}
     * @since ${entity.time}
     */
    Result sort(${entity.idAttr.type} id, Long sort);
    </#if>
}